package com.shangting.web.vo.agreement;

import com.shangting.common.entity.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@Schema(description = "租约信息")
public class AgreementVo extends LeaseAgreement {

    @Schema(description = "签约公寓信息")
    private ApartmentInfo apartmentInfo;

    @Schema(description = "签约房间信息")
    private RoomInfo roomInfo;

    @Schema(description = "支付方式")
    private PaymentType paymentType;

    @Schema(description = "租期")
    private LeaseTerm leaseTerm;

    public AgreementVo() {
    }

    public ApartmentInfo getApartmentInfo() {
        return apartmentInfo;
    }

    public void setApartmentInfo(ApartmentInfo apartmentInfo) {
        this.apartmentInfo = apartmentInfo;
    }

    public RoomInfo getRoomInfo() {
        return roomInfo;
    }

    public void setRoomInfo(RoomInfo roomInfo) {
        this.roomInfo = roomInfo;
    }

    public PaymentType getPaymentType() {
        return paymentType;
    }

    public void setPaymentType(PaymentType paymentType) {
        this.paymentType = paymentType;
    }

    public LeaseTerm getLeaseTerm() {
        return leaseTerm;
    }

    public void setLeaseTerm(LeaseTerm leaseTerm) {
        this.leaseTerm = leaseTerm;
    }

    @Override
    public String toString() {
        return "AgreementVo{" +
                "apartmentInfo=" + apartmentInfo +
                ", roomInfo=" + roomInfo +
                ", paymentType=" + paymentType +
                ", leaseTerm=" + leaseTerm +
                '}';
    }
}
